package com.heima.search.controller.v1;


import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.search.dtos.UserSearchDto;
import com.heima.search.pojo.ApAssociateWords;
import com.heima.search.service.ApAssociateWordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/api/v1/associate/")
public class ApAssociateWordsController {

    @Autowired
    private ApAssociateWordService apAssociateWordService;
    @GetMapping("search")
    public ResponseResult search(@RequestBody UserSearchDto dto){

        return apAssociateWordService.search(dto);

    }
}
